package dao

import "time"

type MemberModel struct {
	BaseModel
	MemberNo     string    `gorm:"type:varchar(20);not null;comment:会员编号;column:member_no" json:"member_no"`
	Mobile       string    `gorm:"type:varchar(15);not null;comment:手机号;column:mobile" json:"mobile"`
	Balance      float64   `gorm:"type:float;not null;comment:余额;column:balance" json:"balance"`
	MemberName   string    `gorm:"type:varchar(100);not null;comment:会员名称;column:member_name" json:"member_name"`
	Active       bool      `gorm:"type:tinyint;not null;default 0;comment:状态,是否已经禁用" json:"active"`
	RegisterTime time.Time `gorm:"column:register_time;comment:会员创建时间" json:"register_time"`
	Store        string    `gorm:"type:varchar(100);not null;comment:所属店铺;column:store" json:"store"`
	Remark       string    `gorm:"type:text;comment:备注;column:remark" json:"remark"`
}

func (MemberModel) TableName() string {
	return "pbqy_member"
}
